<include file="Common/header" />
<!-- 顶部 -->     
<div id="middle">
    <include file="Common/menu" />
    <div class="right" id="mainFrame">
		<div class="right_cont">
			<ul class="breadcrumb">当前位置：
				<a href="javascript:void(0);">首页</a> <span class="divider">/</span>
				<a href="javascript:void(0);">基本信息管理</a> <span class="divider">/</span>
				员工管理
			</ul>
			<div class="title_right"><strong>添加员工</strong></div>
			<form action="" method="POST" id="addfrom">
				<div style="width: 900px; margin:auto">
					<table class="table table-bordered">
						<tr>
							<td width="20%" align="right" bgcolor="#f1f1f1">员工姓名：</td>
							<td>
								<input type="hidden" name="staff_id" id="staff_id" value="0">
								<input type="text" name="staff_name" id="staff_name" class="span1-3" value="" />
								<span class="nicknameabel"></span>
							</td>
						</tr>
						<tr>
							<td width="20%" align="right" bgcolor="#f1f1f1">身份证UDID：</td>
							<td>
								<input type="text" name="card_udid" id="card_udid" class="span1-3" value="" />
								<span class="nicknameabel"></span>
							</td>
						</tr>
					</table>
					<table  class="margin-bottom-20 table  no-border" >
						<tr>
							<td class="text-center">
								<input type="button" value="确定" class="btn btn-info roleSubmit" style="width:80px;" />
							</td>
						</tr>
					</table>
				</div>
			</form>
			
			<div class="title_right"><strong>房卡列表</strong></div>
			<div id="ajaxDiv">
				<include file="Eqment/staff_list" />
			</div>
		</div>     
    </div>
</div>
<script>
	$(document).ready(function(){
		$(".roleSubmit").on('click', function(){
			$.post('staff.html', $("#addfrom").serialize(), function(data){
				alert(data);
				//刷新
				location.reload();
			});
		});
	});
</script>
<include file="Common/footer" />
